package com.darksides.lendit.dao;

import com.darksides.lendit.exceptions.EmailAlreadyUsedException;
import com.darksides.lendit.exceptions.UserNotFoundException;
import com.darksides.lendit.resource.model.User;

public interface UserDAO {

	public User createUser(User user) throws EmailAlreadyUsedException;

	/**
	 * @param userId Id of the user to disable.
	 * @return the user who has just been disabled.
	 */
	public User deleteUser(Long userId) throws UserNotFoundException;

	public User updateUser(User user);
	
	public User getUser(Long userId);

}